package com.zjgsu.nftplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author ahy231
 * @date 2022/3/4 12:00
 * @description
 */
@Data
@ApiModel("点赞")
public class Star {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("点赞用户id")
    private Long userId;
    @ApiModelProperty("商品/评论id")
    private Long objectId;
    @ApiModelProperty("商品/1 评论/2")
    private Integer type;
}
